import instance from 'utils/request';

export function getListApi(params: any) {
  return instance.get('/banner/filter/', { params });
}
export function getArtClassListApi() {
  return instance.get('/banner/tab/list/');
}
export function updateStatusApi(id: number|string,body: any) {
  return instance.patch(`/banner/status/${id}/`, {status:!body.status});
}
export function getTabsApi(){
  return instance.get('/banner/tag/');
}
export function createApi(params:any) {
    return instance.post('/banner/create/', params);

}
export function putApi(body:any) {
  return instance.put(`/banner/update/`, body);
}
